# Introduction

A collection of configurations that i'm using by the time being.

- **Distro**: Arch Linux
- **Window Manager**: bspwm
- **Shell**: mksh
- **Terminal**: st with patches
- **Terminal font**: curie
- **File Manager**: Ranger
- **Bar**: Polybar
- **Wallpaper**: hsetroot
- **Volume Control**: amixer
- **Text Editor**: neovim
- **Media Player**: mpv
- **Browser**: Luakit
- **PDF/EPUB Viewer**: Zathura
- **Image Viewer**: Sxiv

# Instalation

Execute the command

```
bash <(wget https://notabug.com/noamcore/dotfiles/bootstrap.sh)
```

# Bluetooth

I'm using only ALSA (not PulseAudio), so you must configure manually some files.

Install the packages `bluez-alsa-git`, `bluez`, `bluez-utils`

Use this
```
grep -q bluealsa /etc/dbus-1/system.d/bluetooth.conf || sed -i '/<\/busconfig>/ i\ \ <policy user="bluealsa">\n    <allow send_destination="org.bluez"\/>\n  <\/policy>\n' /etc/dbus-1/system.d/bluetooth.conf
```

```
content=<<<EOF
  <policy user="bluealsa">
    <allow send_destination="org.bluez"/>
  </policy>
EOF
sed -e '/$content/{s//$content/;:a;n;ba;q}' -e "/<\/busconfig>/i/$content" /etc/dbus-1/system.d/bluetooth.conf
```

*OR*
Edit the file `/etc/dbus-1/system.d/bluetooth.conf`, add the lines above, just before the closing `</busconfig>`

```
<policy user="bluealsa">
  <allow send_destination="org.bluez"/>
</policy>
```

```
bluetoothctl
power on
agent on
default-agent
scan on
pair XX:XX:XX:XX
connect XX:XX:XX:XX
```

# Keybindings

## BSPWM

- Mod: <kbd>Super</kbd>
- Menu: <kbd>Mod</kbd> + <kbd>D</kbd>

### Windows

- Change window: <kbd>Mod</kbd> + <kbd>h</kbd>/<kbd>j</kbd>/<kbd>k</kbd>/<kbd>l</kbd>
- Preselect: <kbd>Mod</kbd> + <kbd>Ctrl</kbd> + <kbd>h</kbd>/<kbd>j</kbd>/<kbd>k</kbd>/<kbd>l</kbd>
- Cancel preselect: <kbd>Mod</kbd> + <kbd>Ctrl</kbd> + <kbd>Space</kbd>
- Expand window: <kbd>Mod</kbd> + <kbd>Alt</kbd> + <kbd>h</kbd>/<kbd>j</kbd>/<kbd>k</kbd>/<kbd>l</kbd>
- Contract window: <kbd>Mod</kbd> + <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>h</kbd>/<kbd>j</kbd>/<kbd>k</kbd>/<kbd>l</kbd>

### Workspaces

- Change workspace: <kbd>Mod</kbd> + <kbd>1</kbd>-<kbd>8</kbd>
- Move window to another workspace: <kbd>Mod</kbd> + <kbd>Shift</kbd> + <kbd>h</kbd>/<kbd>j</kbd>/<kbd>k</kbd>/<kbd>l</kbd>

### Window mode

- Floating: <kbd>Mod</kbd> + <kbd>s</kbd>
- Tiling: <kbd>Mod</kbd> + <kbd>t</kbd>
- Pseudo-tiling: <kbd>Mod</kbd> + <kbd>Shift</kbd> + <kbd>t</kbd>
- Fullscreen: <kbd>Mod</kbd> + <kbd>f</kbd>
- Marked: <kbd>Mod</kbd> + <kbd>Ctrl</kbd> + <kbd>m</kbd>
- Locked: <kbd>Mod</kbd> + <kbd>Ctrl</kbd> + <kbd>x</kbd>
- Sticky: <kbd>Mod</kbd> + <kbd>Ctrl</kbd> + <kbd>y</kbd>
- Private: <kbd>Mod</kbd> + <kbd>Ctrl</kbd> + <kbd>z</kbd>

# Previews

## White cabin

![Arch](themes/white-cabin/preview.png)

## Blue :D

![Arch](arch.png)
